Skip to main content

DescribeDisks

Description

call the DescribeDisks to query one or more blocks of block storage (including cloud disks and local disks) that you have created.

Request Method

POST

Request Path

/apsara/route/Ecs/DescribeDisks

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
AdditionalAttributes.NBODYrepeatlistNonullother attribute values. Description This parameter is about to be stopped. In order to improve code compatibility, it is recommended that you try not to use this parameter.
CategoryBODYstringNoallcloud disk or local disk type. Value range: all: all cloud disks and local disks cloud: ordinary cloud disk cloud_efficiency: efficient cloud disk cloud_ssd:SSD cloud_essd:ESSD cloud disk local_ssd_pro:I/O intensive local disk local_hdd_pro: throughput-intensive local disk ephemeral:(discontinued) local disk ephemeral_ssd:(discontinued) local SSD disk default value: all.
Filter. 1.KeyBODYstringNoCreationStartTimefilter key when querying resources. The value must be CreationStartTime.
KMSKeyIdBODYstringNo0e478b7a-4262-4802-b8cb-00d3fb408***KMS key ID used by the cloud disk.
PageSizeBODYintegerNo10the number of rows per page set during paging query. maximum value: 100. default value: 10.
NextTokenBODYstringNoAAAAAdDWBF2****query credentials (Token), the value is NextToken parameter value returned from the last API call.
ResourceGroupIdBODYstringNorg-bp67acfmxazb4p****the ID of the enterprise resource group where the cloud disk or local disk is located.
EncryptedBODYbooleanNofalsewhether only encrypted cloud disks are filtered out. default value: false.
DeleteAutoSnapshotBODYbooleanNofalsewhether the automatic snapshot will be released at the same time when the cloud disk is released. default value: false.
DryRunBODYbooleanNofalsewhether to precheck only this request. Value range: true: sends a check request and does not query the resource status. Check items include whether the AccessKey is valid, the authorization status of RAM users, and whether required parameters are filled in. If the check fails, the corresponding error is returned. If the check passes, error code DryRunOperation will be returned. false: sends a normal request, returns a 2XX HTTP status code after checking, and directly queries the resource status. default value: false.
DiskTypeBODYstringNoallthe cloud disk or local disk type to query. Value range: all: query system disk and data disk at the same time system: query system disk only data: query only data disk default value: all.
PageNumberBODYintegerNo1page number of cloud disk or local disk status list. starting value: 1. default value: 1.
Tag.N.ValueBODYstringNoTestValuethe label value of the cloud disk or the local disk. The value range of n is 1~20.
Filter. 1.ValueBODYstringNo2017-12-05T22:40:00Zfilter value when querying resources. The value must be the start time point of resource creation (CreationStartTime).
StatusBODYstringNoAllcloud disk status. Value range: In_use Available Attaching Detaching Creating ReIniting All default value: All.
DiskIdsBODYstringNo["d-bp67acfmxazb4p****", "d-bp67acfmxazb4p ****",… "d-bp67acfmxazb4p****"]cloud disk or local disk ID. A formatted JSON array with up to 100 IDs separated by commas (,).
EnableSharedBODYbooleanNofalsewhether it is shared block storage.
Tag.N.KeyBODYstringNoTestKeythe tag key of the cloud disk or the local disk. The value range of n is 1~20.
ZoneIdBODYstringNocn-qingdao-env17-amtest11001-azone ID.
InstanceIdBODYstringNoi-bp67acfmxazb4p****the instance ID mounted on the cloud disk or local disk.
DeleteWithInstanceBODYbooleanNofalsewhether the cloud disk is set to be released with the instance. Value range: true: the cloud disk is released with the instance. false: the cloud disk is retained and not released. default value: false.
MaxResultsBODYintegerNo50The maximum number returned. Value range: 1~500 default value: 10.
EnableAutomatedSnapshotPolicyBODYbooleanNofalsewhether to query the cloud disk with automatic snapshot policy enabled. default value: false.
AutoSnapshotPolicyIdBODYstringNosp-m5e2w2jutw8bv31a****query the cloud disk according to the automatic snapshot policy ID.
DiskNameBODYstringNotest-DiskNamecloud disk or local disk name.
versionBODYstringNo2016-01-01version of api
Filter. 2.KeyBODYstringNoCreationEndTimefilter key when querying resources. The value must be CreationEndTime.
SnapshotIdBODYstringNos-bp67acfmxazb4p****the snapshot ID used to create the cloud disk.
PortableBODYbooleanNofalsewhether cloud disks or local disks support uninstallation. Value range: true: supported. It can exist independently and can be mounted and unloaded freely in the zone. false: not supported. It cannot exist independently and cannot be mounted and unloaded freely in the zone. /ul> p data-tag = "p" class = "p"> if you need to do attach and detach operations, you must first query this attribute before you can operate on a disk that is true. The system disk of the common cloud disk, the efficient cloud disk, and the SSD cloud disk. This attribute is false. This attribute cannot be changed by the user.
regionIdBODYstringYesNo sample value for this parameter.region id
Filter. 2.ValueBODYstringNo2017-12-06T22:40:00Zfilter value when querying resources. The value must be the end time of resource creation (CreationEndTime).
RegionIdBODYstringYescn-qingdao-env17-d01the region ID to which the block store belongs. You can call the DescribeRegions to view the latest Alibaba Cloud region list.

Return data

NameTypeSample valueDescription
RequestIDstring1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DCRequest id

Example

Successful Response example

{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}